package entity

import (
	"gluenet/internal/glue-srvp/domain/po"
	"gluenet/internal/pkg/infra"
)

type Auth struct {
	infra.Entity `xorm:"-"`
	po.User      `xorm:"extends"`
	Tags         []po.Tag `xorm:"-"`
}

func (r Auth) TableName() string {
	return "user"
}

func (r Auth) Identity() int64 {
	return r.Id
}
